package com.easychat.exception;

/**
 * @author Admin
 * @version 1.0
 * @description: TODO
 * @date 2024/6/25 20:35
 */
public class BusinessException extends RuntimeException {
    private int code;

    public BusinessException(String message, int code) {
        super(message);
        this.code = code;
    }

    public BusinessException(String message) {
        super(message);
        this.code = 100;
    }

    public int getCode() {
        return code;
    }
}
